﻿@model IEnumerable<sgp.Models.FormaDoacao>

@{
    ViewBag.Title = "Index";
}



<legend>
<table border="0" width="100%" cellpadding="5">
    <tr>
        <td>
            <h2>Forma de Doação</h2>
        </td>
    </tr>

     <tr>
        <td>
        <a class="btn btn-primary btn-primary pull-left" href="/FormaDoacao/Create" data-original-title="">Adicionar</a>
        <td>
    
    </tr>
</table>
</legend>

<table class="table table-bordered table-striped" width="100%" cellspacing="0" cellpadding="0" border="0">

    <tr>
        <th>
            Nome
        </th>
        <th>
            Ações
        </th>
    </tr>

@foreach (var item in Model) { 

    <tr>
        <td>
            <div>
                @Html.DisplayFor(modelItem => item.Nome)
            </div>
        </td>
        <td>
            <a class="btn" href="/FormaDoacao/Edit/@item.Id" data-original-title="Editar"> <i class="icon-edit"></i></a>
            @*<a class="btn" href="/TipoDoador/Details/@item.Id" data-original-title="Detalhar"> <i class="icon-file"></i></a>*@
            <a class="btn btn-danger" href="/FormaDoacao/Delete/@item.Id" data-original-title="Deletar"><i class="icon-remove icon-white"></i></a>
        </td>
    </tr>
}
</table>

